from enum import Enum

# 普通常量

Con1= 'plam.food.new.pos.app.beta'
Con2 ='plam.food.new.pos.app.pre'
Con3 = 'plam.food.new.pos.app'
SWITCH_ENV = Con1

LANGUAGE_SEQUENCE = ["简体中文", "英文", "西语", "加语", "法语"]
START_CLASS_KEYBOARD = {
    '1': {"x": 1043, "y": 635},
    '2': {"x": 1311, "y": 647},
    '3': {"x": 1501, "y": 647},
    '4': {"x": 1056, "y": 763},
    '5': {"x": 1274, "y": 771},
    '6': {"x": 1505, "y": 771},
    '7': {"x": 1035, "y": 903},
    '8': {"x": 1274, "y": 882},
    '9': {"x": 1534, "y": 870},
    '0': {"x": 1258, "y": 994},
    '.': {"x": 1064, "y": 1006},
    'clear': {"x": 1497, "y": 981}
}
SCREEN_SHOOT_PATH = '/Users/palmnet/Development/Erp_Dev/Study/screen_shoot'


# 枚举常量

class VipWay(Enum):
    """
    VIP方式
    """
    email = "email"
    telephone = "telephone"
    id = "id"


class PaymentMethod(Enum):
    """
    付款方式
    """
    cash = "cash"
    card = "card"
    takeout = "takeout"
    other = "other"


class PayWay(Enum):
    """
    支付方式
    """
    entire_pay = "entire"
    aa_pay = "aa_pay"


class CouponTabCons(Enum):
    """
    优惠券状态常量
    """
    available = "available"
    expired = "expired"
    disabled = "disabled"


class EnvCons(Enum):
    """
    环境常量
    """
    pro = 'prod'
    pre = 'pre'
    test = 'test'


class DineCate(Enum):
    """
    用餐方式
    """
    takeout = 'takeout'
    dinein = 'dinein'
    askfor = 'askfor'


class DishReturnReason(Enum):
    """
    菜品退菜理由
    """
    multiple = 'multiple'
    sellout = 'sellout'
    dishproblem = 'dishproblem'


class ShiftTurnoverSettlement(Enum):
    """
    切换交接班和日结
    """
    turnover = 'turnover'
    settlement = 'settlement'


class BusinessDiscountType(Enum):
    """
    商家折扣类型
    """
    fixamount = 'fixamount'
    fixdiscount = 'fixdiscount'

